package com.shanjupay.common.domain;

import lombok.Data;

/**
 * 自定义业务异常类
 */
@Data
public class BusinessException extends RuntimeException{
    //错误代码
    private ErrorCode errorCode;

    public BusinessException(ErrorCode errorCode) {
        super();
        this.errorCode = errorCode;
    }

    public BusinessException() {
        super();
    }
}
